#include "State.h"
#include <iostream>


using namespace std;
using namespace sf;


State::State(const std::function<void(StateEnum STATE)> &giveTokenTo, RenderingEngine &render, EventParser &eventParser,SpriteManager &SpriteManager,MusicPlayer &musicPlayer) :
_giveTokenTo(giveTokenTo),
_eventParser(eventParser),
_render(render),
_SpriteManager(SpriteManager),
_musicPlayer(musicPlayer)
{}



void State:: activate()
{
	isLeavingState = false;
	loop();	
}

void State::loop()
{

}

void State::interpretInput(EventEnum input)
{}
void State::interpretMouse(const Vector2f&)
{}
void State::init()
{}

void  State::leaveState()
{
	isLeavingState = true;
}